You are here: Understanding the Meridian object model > About the Folder object > The Folder object methods > GetSubFolder method

GetSubFolder method

Returns a folder object that represents a subfolder of the current folder object.

Syntax

GetSubFolder(Name As String, [TypeName As String], [Options As Long = 0]) As IASFolder6
Parameters
Name Description

Name

The name of the subfolder to return.

TypeName

Folder type of the subfolder to return. To return a standard folder, specify an empty string.

Options

Optional long integer that represents one or more AS_NEWFOLDER_OPTIONS constants.

Return Value

A Folder object.

Remarks

Pass the AS_NFO_CREATE_IFNOTEXIST constant to this method to create a new subfolder equivalent to the NewFolder method.

For the wizard events to occur for this method, the NewWizardEvents setting in the [ScriptEvents] section on the Application Integration tab of Application Settings in Configurator must be set to Y. The default is N.

Related concepts

About the Folder object